
#include <stdlib.h>
#include <time.h>

#include "ProcessBar.h"

void NetworkTransmis(double total)
{
    srand((unsigned int)time(NULL));

    for(double cur = 0.0,speed = 1.00;cur <= total;cur += speed)
    {
        ProcessBar(cur,total);
        usleep(5000);
    }

    printf("\n小梦涵：已成功下载%.2lfMB文件\n",total);
}

int main()
{
    NetworkTransmis(1024.00);
    return 0;
}
